#import <Foundation/Foundation.h>

extern NSString * const     MRSkinChangeNotification;				//主题变化通知

//支持主题颜色的View中,其tag为主题颜色索引值
typedef NS_ENUM(NSInteger, MRSkinColorIndex)
{
	MRSkinColorDestructive	= -5,		//重要操作的颜色
	
	MRSkinColorSkin			= -10,
	MRSkinColorMainText		= -11,			//alpha = 1
	MRSkinColorDarkText		= -12,			//alpha = 0.667
	MRSkinColorGrayText		= -13,			//alpha = 0.5
	MRSkinColorLightText	= -14,			//alpha = 0.333
	MRSkinColorAlphaText	= -15,			//alpha = 0.1
};

@interface MRSkinManager : NSObject

+ (instancetype)skin;
+ (instancetype)skinWithColor:(UIColor *)color;		//传入主题颜色，如果为nil，导航栏将不渲染同时skinColor使用默认颜色

@property (nonatomic, readonly) UIColor		*skinColor;				//主题颜色

@property (nonatomic, getter=isNightMode)	BOOL	nightMode;		//夜间
@property (nonatomic, readonly) UIStatusBarStyle	statusBarStyle;

@property (nonatomic, readonly)	UIColor		*mainTextColor;			//主要文本颜色(白天黑色,夜间亮灰色)
@property (nonatomic, readonly) UIColor		*backgroundColor;		//背景颜色

- (UIColor *)colorWithIndex:(MRSkinColorIndex)index;

- (UIColor *)colorForGender:(NSUInteger)gender;
- (UIColor *)colorForSportType:(FSSportType)type;

@end
